﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Config.aspx.cs" Inherits="UI_Mail_Config" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
  <head runat="server">
    <title></title>
    <link href="../../js/jquery.easyui/themes/default/easyui.css" rel="stylesheet" type="text/css" />
    <link href="../../js/jquery.easyui/themes/icon.css" rel="stylesheet" type="text/css" />
    <script src="../../js/jquery.easyui/jquery.min.js" type="text/javascript"></script>
    <script src="../../js/jquery.easyui/jquery.easyui.min.js" type="text/javascript"></script>
    <script src="../../js/common.js" type="text/javascript"></script>
    <script src="../../js/js.js" type="text/javascript"></script>
    <link href="../../css/admin.css" rel="stylesheet" type="text/css" />
    <style>
     .datagrid-header-row {
       background-image: url(../Images/whood.gif);
	     color:#0080CE;
       white-space:nowrap;
     }
    </style>
    <script type="text/javascript">
     $(document).ready(function() {
       $('#feedbacktype').datagrid({
         fitColumns: true,
         height: 200,
         noheader: true,
         singleSelect: true,
         url: '../../TableHanders.aspx?act=q&tid=8014&type=0',
         columns: [[
           { 
             field: 'OP', title: '<a href="FeedbackFollowUp.aspx?act=I"><img src="../../Images/News.gif" alt="新增"  title="新增" class="commandImg" /></a> 操作', width: 60, fixed: true,
             formatter: function (value, row, index) {
               return '<a href="FeedbackFollowUp.aspx?act=u&id=' + row['ID'] + '&type=' + row['Type'] + '&level=' + row['Level'] + '"><img  class="commandImg" src="../../Images/Edit.gif" title="编辑" alt="编辑"/></a><a href="#"><img src="../../Images/Delete.gif" title="删除" alt="删除" class="commandImg" onclick="deleteFeedback(this,\'54\');" id=\'' + row['ID'] + '\' /></a>'
				     }
           },
           { field: 'Type', title: '评价类型', width: 160 },
           { field: 'Level', title: '跟进类型', width: 180  }
         ]]
       });
       
       // 用户管理
       $('#users').datagrid({
         //width: 405,
         height: 200,
         fitColumns: true,
         noheader: true,
         singleSelect: true,
         url: '../../TableHanders.aspx?act=q&tid=8015&type=0',
         columns: [[
           { 
             field: 'OP', title: '<a href="Users.aspx?act=i"><img src="../../Images/News.gif" alt="新增"  title="新增" class="commandImg" /></a> 操作', width: 60, fixed: true,
             formatter: function(value,row,index){
               return '<a href="Users.aspx?act=u&id="' + row['ID'] + '><img  class="commandImg" src="../../Images/Edit.gif" title="编辑" alt="编辑"/></a><a><img src="../../Images/Delete.gif" title="删除" alt="删除" class="commandImg" onclick="deleteUser(this,\'55\');" id=\'' + row['ID'] + '\' /></a>'
				     }
           },
           { field: 'Username', title: '操作人', width: 160 },
           { field: 'Signature', title: '签名', width: 180  }
         ]]
       });

       $('#tbFlag').datagrid({
         height: 200,
         fitColumns: true,
         noheader: true,
         singleSelect: true,
         url: '../../TableHanders.aspx?act=q&tid=8015&type=0',
         columns: [[
           {
             field: 'OP', title: '<a href="MenuFlagManage.aspx?act=i"><img src="../../Images/News.gif" alt="新增"  title="新增" class="commandImg" /></a> 操作', width: 60, fixed: true,
             formatter: function (value, row, index) {
               return '<a href="MenuFlagManage.aspx?act=u&id="' + row['ID'] + '><img  class="commandImg" src="../../Images/Edit.gif" title="编辑" alt="编辑"/></a><a><img src="../../Images/Delete.gif" title="删除" alt="删除" class="commandImg" onclick="deleteUser(this,\'55\');" id=\'' + row['ID'] + '\' /></a>'
             }
           },
           { field: 'Username', title: '操作人', width: 160 },
           { field: 'Signature', title: '签名', width: 180 }
         ]]
       });
     });
     var deleteFeedback = function (sign, id) {
       Delete(sign, id);
       $('#feedbacktype').datagrid('reload');
     }

     function deleteUser(sign, id) {
       Delete(sign, id);
       $('#users').datagrid('reload');
     }
    </script>
  </head>
  <body>
    <form runat="Server"> 
    <div class="easyui-panel" title="评价类型" style="margin-bottom:5px; width:1100px">
      <table id="feedbacktype"></table>
    </div>
    <div class="easyui-panel" title="用户管理" style="margin-bottom:5px; width:1100px">
      <table id="users"></table>
    </div>
    <div class="easyui-panel" title="旗帜管理" style="margin-bottom:5px; width:1100px">
      <table id="tbFlag"></table>
    </div>
    <div>
      <table>
        <tr>
          <td>退回地址</td>
          <td>
            <input id="txtAddress" type="text" runat="Server" style="width: 150px" />
            <asp:RequiredFieldValidator ID="addressValidator" runat="server" ErrorMessage="回复地址不能为空" ControlToValidate="txtAddress" Display="Dynamic"></asp:RequiredFieldValidator>*
          </td>
        </tr>
        <tr>
          <td>回复邮箱</td>
          <td>
            <input id="txtEmail" type="text" runat="Server"/>
            <asp:RequiredFieldValidator ID="emailValidator" runat="server" ErrorMessage="Email不能为空" ControlToValidate="txtEmail" Display="Dynamic"></asp:RequiredFieldValidator>*
          </td>
        </tr>
        <tr>
          <td>未付款关闭天数</td>
          <td>
            <input id="txtDays" runat="Server" />
            <asp:RequiredFieldValidator ID="daysValidator" runat="server" ErrorMessage="未关闭天数不能为空" ControlToValidate="txtDays" Display="Dynamic"></asp:RequiredFieldValidator>天*
          </td>
        </tr>
      </table>  
    </div>
    <a id="btnsave" class="easyui-linkbutton" runat="Server" onserverclick="ButtonSave_Click">保存</a>
      </form>
  </body>
</html>
